⧉
Copy code
7
/ 48
Copy Path
. Shift-click copies absolute path.
Copied copy path!
vyasa manual/mermaid-diagrams.md
H2
Interactions
URL copied
H3
Scripted Interaction & Resilience
URL copied
H4
Mermaid Zoom & Pan
URL copied
Mouse wheel zoom
: Zooms toward cursor position with 1% intensity per wheel event (prevents jarring jumps)
Mouse drag panning
: Click and drag to pan, cursor changes to
grabbing
during drag
Smart initial scaling
:
Wide diagrams (aspect ratio > 3): Scale to fit width, allow vertical scroll
Normal diagrams: Fit to smaller dimension (width or height), max 3x upscaling
Accounts for padding: 32px total (16px each side from
p-4
class)
State management
: Per-diagram state stored in
mermaidStates
object with scale, translateX, translateY, isPanning, startX, startY
Transform origin
: Center-center for natural zoom behavior
Mermaid Diagrams
Navigate by section
Exit to document
⇧ Esc
Introduction
2
Basic usage
3
Frontmatter controls
4
Interactions
5
Scripted Interaction & Resilience
6
Mermaid Zoom & Pan
7
Theme
8
HTMX Integration
9
Mobile Menu Handling
10
Additional Features
11
flowchart TD
12
classDiagram
13
sequenceDiagram
14
erDiagram
15
stateDiagram-v2
16
mindmap
17
sankey beta
18
radar-beta
19
treemap-beta
20
timeline
21
C4Context
22
gantt
23
architecture-beta
24
gitGraph
25
pie
26
journey
27
quadrantChart
28
xychart
29
requirementDiagram
30
kanban
31
C4Container
32
C4Component
33
C4Dynamic
34
C4Deployment
35
block
36
packet
37
swimlane-beta
38
agentflow-beta
39
usecase-beta
40
venn-beta
41
ishikawa-beta
42
eventmodeling
43
wardley-beta
44
cynefin-beta
45
treeView-beta
46
railroad-beta
47